<?php if( get_user_id() ): ?>
    <div class="register"><?php echo link_to(__('User profile'), 'user/profile')?></div>
    <div class="register"><?php echo link_to(__('logout'), 'user/logout')?></div>
<?php else: ?>
    <div class="register"><?php echo link_to(ucfirst(__('forgot password?')), 'user/forgotpassword')?></div>
    <div class="register"><?php echo link_to(ucfirst(__('sign up')), 'user/register')?></div>
    <div style="float: left;">
        <div class="login1"></div>
        <div class="login2">
            <?php echo form_tag('user/login') ?>
            <?php echo __('Login') ?>: 
<!--            <input class="login_input" name="email" type="text" value="<?php echo __('username') ?>" /> -->
            <?php echo input_tag(
                            'email'
                            , __('email')
                            , array(
                                'class' => 'login_input'
                                , 'onfocus' => "clearDefaultText(this, '" . __('email') . "');"
                                , 'onblur' => "restoreDefaultText(this, '" . __('email') . "');"
                            )
                        );?>
            <?php echo input_password_tag(
                                        'password'
                                        , '******'
                                        , array(
                                            'class' => 'login_input'
                                            , 'onfocus' => "clearDefaultText(this, '******');"
                                            , 'onblur' => "restoreDefaultText(this, '******');"
                                        )
                                    ); ?>
            <input class="login_submit" type="submit" value="<?php echo __('login') ?>" />
            </form>
        </div>
        <div class="login3"></div>
    </div>

<?php endif; ?>
